﻿using System.Collections.Generic;

namespace YG.CommonFuncs
{
    /// <summary>
    /// 邮件请求对象
    /// </summary>
    public class User
    {
        public string UserId { get; set; }
        public string UserMail { get; set; }
    }

    public class MailRequestModel
    {
        public string subject { get; set; }
        public string header { get; set; }
        public string content { get; set; }
        public string foot { get; set; }

        //public List<string> filelist { get; set; }
        private List<string> _filelist = new List<string>();

        public List<string> filelist

        {
            get
            {
                return _filelist;
            }

            set

            {
                _filelist = value;
            }
        }

        //public List<User> tolist { get; set; }
        private List<User> _tolist = new List<User>();

        public List<User> tolist

        {
            get
            {
                return _tolist;
            }

            set

            {
                _tolist = value;
            }
        }

        //public List<User> cclist { get; set; }
        private List<User> _cclist = new List<User>();

        public List<User> cclist

        {
            get
            {
                return _cclist;
            }

            set

            {
                _cclist = value;
            }
        }

        //public List<User> bcclist { get; set; }
        private List<User> _bcclist = new List<User>();

        public List<User> bcclist
        {
            get
            {
                return _bcclist;
            }

            set

            {
                _bcclist = value;
            }
        }

        public int ifcustom { get; set; }

        private List<Custom> _custommodel = new List<Custom>();

        //public List<Custom> custommodel { get; set; }
        public List<Custom> custommodel
        {
            get
            {
                return _custommodel;
            }

            set

            {
                _custommodel = value;
            }
        }
    }

    public class Custom
    {
        public string customfilename { get; set; }
        public string customtype { get; set; }
        public int custominsamepage { get; set; }
        public List<string> customvalue { get; set; }
    }
}